<?php
Doo::loadCore('db/DooModel');

class GlboUserBase extends DooModel
{

    /**
     * @var int Max length is 11.
     */
    public $usr_id;

    /**
     * @var varchar Max length is 100.
     */
    public $usr_login;

    /**
     * @var varchar Max length is 254.
     */
    public $usr_name;

    /**
     * @var varchar Max length is 100.
     */
    public $usr_passwd;

    /**
     * @var varchar Max length is 150.
     */
    public $usr_mail;

    public $_table = 'glbo_user';
    public $_primarykey = 'usr_id';
    public $_fields = array('usr_id','usr_login','usr_name','usr_passwd','usr_mail');

    public function getVRules() {
        return array(
                'usr_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'optional' ),
                ),

                'usr_login' => array(
                        array( 'maxlength', 100 ),
                        array( 'notnull' ),
                ),

                'usr_name' => array(
                        array( 'maxlength', 254 ),
                        array( 'notnull' ),
                ),

                'usr_passwd' => array(
                        array( 'maxlength', 100 ),
                        array( 'notnull' ),
                ),

                'usr_mail' => array(
                        array( 'maxlength', 150 ),
                        array( 'notnull' ),
                )
            );
    }

}